<%@ page import="java.util.List" %>
<%@ page import="com.neusoft.student.model.Student" %>
<%@ page import="com.neusoft.student.utils.Pager" %><%--
  Created by IntelliJ IDEA.
  User: 86185
  Date: 2020/10/20
  Time: 16:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页面</title>
</head>
<body>
    <%
        Student editBean = (Student) request.getAttribute("editBean");

    %>
    <form action="studentedit" method="post">
        <input type="hidden" name="id" value="<%=editBean.getId()%>">
        <input type="text" name="username" placeholder="请输入用户名" value="<%=editBean.getUsername()%>">
        <input type="password" name="password" placeholder="请输入密码" value="<%=editBean.getPassword()%>">
        <input type="radio" name="sex" value="1"  <%=editBean.getSex().equals("男") ? "checked" : ""%>> 男
        <input type="radio" name="sex" value="0"  <%=editBean.getSex().equals("女") ? "checked" : ""%>> 女
        <input type="phone" name="phone" placeholder="请输入手机" value="<%=editBean.getPhone()%>">
        <select name="dormitory">
            <option value="1">101</option>
            <option value="2">102</option>
        </select>
        <button>提交</button>
    </form>
</body>
</html>
